import Vue from 'vue';
import VueRouter from 'vue-router';
import routers from './routers';
import './assets/font-icons/material/material-icons.css';
import MuseUI from 'muse-ui';
import App from './App';
import 'muse-ui/dist/muse-ui.css';
import 'muse-ui-loading/dist/muse-ui-loading.css';
import Loading from 'muse-ui-loading';
import axios from 'axios'

Vue.use(MuseUI);
Vue.use(VueRouter);
Vue.use(Loading);

Vue.prototype.$http = axios.create({
  baseURL: 'http://localhost:5000/v1',
  timeout: 5000,
  headers: {'Content-Type': 'application/json'}
})

const router = new VueRouter({
  mode: 'history',
  routes: routers
})

const app = new Vue({
  el: '#app',
  router,
  render: h => h(App)
});
